"""wxcloudrun URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from wxcloudrun import views
from wxcloudrun import xiaoqu
from wxcloudrun import bind_user
from wxcloudrun import checkinfo
from wxcloudrun import createreport
from wxcloudrun import report1
from wxcloudrun import result
from wxcloudrun import duty
from wxcloudrun import extfile
from django.conf.urls import url

urlpatterns = (
    url(r'^^api/report1(/)?$', report1.getresult),
    url(r'^^api/getresult(/)?$', result.getresult),
    url(r'^^api/createreport(/)?$', createreport.create),
    url(r'^^api/getreport(/)?$', createreport.getresult),
    url(r'^^api/duty(/)?$', duty.adddata),
    url(r'^^api/updateuser(/)?$', bind_user.adddata),
    url(r'^^api/xiaoqu(/)?$', xiaoqu.adddata),
    url(r'^^api/checkinfo(/)?$', checkinfo.adddata),
    url(r'^^api/count(/)?$', views.counter),
    url(r'^^api/export/checkinfo_file(/)?$', extfile.index),
    url(r'(/)?$', views.index),
)
